import { PageRequestData, ResponseTableData, TableData } from "@@/apis/common"

export interface BaseInfo {
  id: string
  name: string
  code: string
  type?: string
  version?: string
  path: string
  tag?: string
  remark?: string
  fileSize?: string
  thumb?: string
  threeThumbPath?: string
}

export interface AddBaseInfo {
  code?: string
  name: string
  remark?: string
  file: any
}

export interface ResTableData extends BaseInfo, TableData {
  id: string
}

export interface PageTableRequestData extends PageRequestData {}
export type TableResponseData = ApiResponseData<ResponseTableData<ResTableData>>
export type ViewResponseData = ApiResponseData<BaseInfo>